﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lesk;

namespace Infinity.ExpressionParser.Tokens
{
	public class OperatorToken : Token
	{
		public OperatorToken()
		{
			BracketDirection = BracketDirection.Left;
			Precedence = 100;
		}

		/// <summary>
		/// Operátor precedenciája
		/// </summary>
		public int Precedence { get; set; }

		/// <summary>
		/// Operátor jele
		/// </summary>
		public string Operator { get; set; }

		/// <summary>
		/// Zárójelezés iránya default : jobb
		/// </summary>
		public BracketDirection BracketDirection { get; set; }
	}

	public enum BracketDirection
	{
		Left, Right
	}
}
